﻿
#region Imports...
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Indeco.G24.Web.UI;
#endregion
namespace Indeco.G24.Website.Admin
{
    public partial class TinTucDanhMucEdit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FormUtil.RedirectAfterInsertUpdate(FormView1, "TinTucDanhMucEdit.aspx?{0}", TinTucDanhMucDataSource);
            FormUtil.RedirectAfterAddNew(FormView1, "TinTucDanhMucEdit.aspx");
            FormUtil.RedirectAfterCancel(FormView1, "TinTucDanhMuc.aspx");
            FormUtil.SetDefaultMode(FormView1, "IDTinTucDanhMuc");
        }
        protected void GridViewTinTuc_SelectedIndexChanged(object sender, EventArgs e)
        {
            string urlParams = string.Format("IDTinTuc={0}", GridViewTinTuc.SelectedDataKey.Values[0]);
            Response.Redirect("TinTucEdit.aspx?" + urlParams, true);
        }
    }
}


